﻿@model Core.Domain.Model.Post
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Editar um Post</legend>
        @Html.HiddenFor(model => model.PostId)
        <div class="editor-label">
            @Html.LabelFor(model => model.PostName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PostName)
            @Html.ValidationMessageFor(model => model.PostName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PostDescription)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.PostDescription)
            @Html.ValidationMessageFor(model => model.PostDescription)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PublishedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PublishedDate)
            @Html.ValidationMessageFor(model => model.PublishedDate)
        </div>
        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Voltar para lista", "Index")
</div>
